package com.sky.service;

import com.sky.dto.*;
import com.sky.entity.Orders;
import com.sky.result.PageResult;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

/**
 * @author xmy
 * @version 1.0
 */
public interface OrderService {
    public OrderSubmitVO submit(OrdersSubmitDTO ordersSubmitDTO);

    /**
     * 订单支付
     * @param ordersPaymentDTO
     * @return
     */
    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);

    /**
     * 客户催单
     * @param id
     */
    void reminder(Long id);

    OrderVO queryOrderDetail(Long id);

    void cancel(Long id);

    PageResult list(OrdersPageQueryDTO ordersPageQueryDTO);

    void repetition(Long id);

    OrderVO getById(Long id);

    void update(OrdersRejectionDTO ordersRejectionDTO);

    OrderStatisticsVO getData();

    void confirm(OrdersConfirmDTO ordersConfirmDTO);

    void cancelAdmin(OrdersCancelDTO ordersCancelDTO) throws Exception;

    void delivery(Orders orders);

    void complete(Orders orders);
}
